#pragma once
#include "XMLCommonLoader.h"
#include <OgreString.h>
#include "Profile.h"
#include "rapidxml.hpp"

class ProfileLoader :
	public XMLCommonLoader
{
public:
	ProfileLoader(void);
	~ProfileLoader(void);

	void parseProfileFile(const Ogre::String &fileName, const Ogre::String &groupName);
	Profile* getProfile(void) { 
		return this->profile; 
	}

private:
	Profile* profile;

	void processProfile(rapidxml::xml_node<>* XMLRoot);
	
	void processDifficulty(rapidxml::xml_node<>* XMLNode);
	void processProgress(rapidxml::xml_node<>* XMLNode);
};
